package thread.matrix;

import thread.matrix.group.ParalleGroupMultiplier;

public class Test4_GroupMultiplier {
    public static void main(String[] args) {
        //生成矩阵
        double[][] matrix1 = MatrixGenerator.genertate(1000,1000);
        double[][] matrix2 = MatrixGenerator.genertate(1000,1000);
        //结果矩阵
        double[][] result = new double[matrix1.length][matrix2[0].length];

        long start,end;
        start = System.currentTimeMillis();

        //计算举证
        ParalleGroupMultiplier.multiply(matrix1, matrix2, result);

        end = System.currentTimeMillis();
        System.out.println("多线程-按cpu核数分配任务算法运行时间为："+(end-start)+"ms");//
    }
}
